﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Revis.VClinicNet.Util.Extensions
{
    public static class DayOfWeekExtension
    {
        public static string ToPLString(this DayOfWeek day)
        {
            string dayOfWeek = String.Empty;
            switch (day) {
                case DayOfWeek.Monday:
                    dayOfWeek = "Poniedziałek";
                    break;
                case DayOfWeek.Tuesday:
                    dayOfWeek = "Wtorek";
                    break;
                case DayOfWeek.Wednesday:
                    dayOfWeek = "Środa";
                    break;
                case DayOfWeek.Thursday:
                    dayOfWeek = "Czwartek";
                    break;
                case DayOfWeek.Friday:
                    dayOfWeek = "Piątek";
                    break;
                case DayOfWeek.Saturday:
                    dayOfWeek = "Sobota";
                    break;
                case DayOfWeek.Sunday:
                    dayOfWeek = "Niedziela";
                    break;
            };
            return dayOfWeek;
        }
    }
}
